package com.yic.module.mes.controller.admin.reportworkhours.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

import static com.yic.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static com.yic.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 报工工时报表请求参数")
@Data
public class ReportWorkHoursFormsReqVO {

    @Schema(description = "员工", example = "22944")
    private Long userId;

    @Schema(description = "车间", example = "22944")
    private Long workshopId;

    @Schema(description = "工单", example = "22944")
    private Long moId;

    @Schema(description = "工单", example = "22944")
    private String moCode;

    @Schema(description = "开始时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @NotNull(message = "开始时间不能为空")
    private Date startTime;

    @Schema(description = "结束时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @NotNull(message = "结束时间不能为空")
    private Date endTime;

}
